#if !ITEM_H
#define ITEM 1

#define ITEM_SPEED				(30.0f)

#define ITEM_STATE_DIE			0
#define ITEM_STATE_MOVE			1

#define ITEM_TYPE_EGG			0
#define ITEM_TYPE_SHIT			1

class CItem{

	float _speed;
	float _targetX;
	float _targetY;
	float _baseX;
	float _baseY;
	int _id;
	int _type;
	int _state;

public:
	CItem(){_state = ITEM_STATE_DIE;}
	void Init(int id, int type, float baseX, float baseY);
	void Update();
	void Render();
	bool MoveTo(float targetX, float targetY);
	bool IsDie(){return _state == ITEM_STATE_DIE;};
	void SetDie(){_state = ITEM_STATE_DIE;};
};
#endif